#!/bin/sh

# SPDX-FileCopyrightText: © 2022 Peter Lemenkov
#
# SPDX-License-Identifier: CC0-1.0

. "`dirname "$0"`/../functions"

DIR=$1

autotrace -report-progress -centerline -input-format TGA $DIR/lego_5.tga -output-format svg -output-file $DIR/lego_5.svg
RESULT=$?

if [ $RESULT -eq 0 ] && [ -s $DIR/lego_5.svg ] ; then
    rm -f $DIR/lego_5.svg
    ok
else
    fail
fi
